﻿<?xml version="1.0" encoding="utf-8" ?>

<Content type="xform" name="WebSettings">
   <model>
     <instance>
       <PasswordPolicy>
         <Password>
           <retrys>0</retrys>
           <minLength>6</minLength>
           <maxLength>25</maxLength>
           <numsLength>1</numsLength>
           <upperLength>1</upperLength>
           <specialLength>1</specialLength>
           <barWidth>200</barWidth>
           <barColor>Green</barColor>
           <specialChars>!@#\\$%*()_+^&amp;}{:;?.</specialChars>
           <!-- 1=Yes, 0=No-->
           <useMultipleColors>1</useMultipleColors>
           <blockHistoricPassword>0</blockHistoricPassword>
         </Password>
       </PasswordPolicy>
    </instance>
    <submission id="WebSettings" action="" method="post" event="form_check(this)" />
     <bind nodeset="PasswordPolicy/Password">
       <bind id="retrys" nodeset="retrys" required="true()" type="number" />
       <bind id="minLength" nodeset="minLength" required="true()" type="number" />
       <bind id="maxLength" nodeset="maxLength" required="true()" type="number" />
       <bind id="numsLength" nodeset="numsLength" required="true()" type="number" />
       <bind id="upperLength" nodeset="upperLength" required="true()" type="number" />
       <bind id="specialLength" nodeset="specialLength" required="true()" type="number" />
       <bind id="barWidth" nodeset="barWidth" required="true()" type="number" />
       <bind id="barColor" nodeset="barColor" required="true()" type="string" />
       <bind id="specialChars" nodeset="specialChars" required="true()" type="string" />
       <bind id="useMultipleColors" nodeset="useMultipleColors" required="true()" type="number" />
       <bind id="blockHistoricPassword" nodeset="blockHistoricPassword" required="true()" type="number" />
     </bind>      
   </model>
   <group ref="WebSettings">
    <label>Password Policy</label>
     <group class="inline">
       
     <input bind="minLength">
       <label>Minimum Length</label>
     </input>
     <input bind="maxLength">
       <label>Maximum Length</label>
     </input>
     <input bind="numsLength">
       <label>Numbers Required</label>
     </input>
     <input bind="upperLength">
       <label>Uppercase Required</label>
     </input>
     <input bind="specialLength">
       <label>Special Characters Required</label>
     </input>
     <input bind="specialChars">
       <label>Special Characters Allowed</label>
     </input>
     <input bind="barWidth">
       <label>barWidth</label>
     </input>
     <input bind="barColor">
       <label>barColor</label>
     </input>
     <select1 bind="useMultipleColors" appearance="full">
       <label>Multiple Colors</label>
       <item>
         <label>On</label>
         <value>1</value>
       </item>
       <item>
         <label>Off</label>
         <value>0</value>
       </item>
       <value />
     </select1>
       <range bind="retrys" start="0" end="20" step="1">
         <label>Allowed logon retries before reset (0 = unlimited)</label>
       </range>
       <range bind="blockHistoricPassword" start="0" end="20" step="1">
         <label>Block Historic Password Count (0 = none)</label>
       </range>
     </group>
     <group>
       <submit submission="" ref="submit" class="principle">
      <label>Save Password Settings</label>
    </submit>
     </group>
  </group>
</Content>
